<?php echo script::add('jquery'),script::add('checkbox'); ?>
<script type="text/javascript">$(document).ready(function(){
$('#checkbox_all_button').checkbox_all('.list_id');
$('#checkbox_none_button').checkbox_none('.list_id');
$('#checkbox_anti_button').checkbox_anti('.list_id');
$('#checkbox_all_checkbox').checkbox_checkbox('.list_id');
$('#delete_list_button').click(function(){var list_id=$.checkbox_get_id('.list_id');if(list_id==''){alert('请选择所要删除的用户!');return false;}if(!confirm('你确认要进行删除操作?')){return false;} 
$.post('<?php echo $this->get_action_url('ajax_delete_user'); ?>', {list_id:list_id}, function(data){if(data==101){alert('恭喜!删除成功');$('.list_id').attr('checked', false);location.reload();}else{alert(data);}});
});});</script>
<?php echo $pagelist_css; ?>
<table width="800" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="30" align="left">>><?php echo $site_name; ?></td>
      </tr>
      <tr>
        <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="30" align="left">&nbsp;</td>
          </tr>
          <tr>
            <td height="30" align="left"><?php if($list_data) {?><input type="button" name="checkbox_all_button" id="checkbox_all_button" value="全选" />&nbsp;<input type="button" name="checkbox_none_button" id="checkbox_none_button" value="全不选" />&nbsp;<input type="button" name="checkbox_anti_button" id="checkbox_anti_button" value="反选" />&nbsp;<input type="button" name="delete_list_button" id="delete_list_button" value="删除" /><?php } ?></td>
          </tr>
          <tr>
            <td align="left"><table width="100%" border="0" cellspacing="5" cellpadding="0">
              <tr>
                <td width="30" height="30" align="center" bgcolor="#CCCCCC"><input type="checkbox" name="checkbox_all_checkbox" id="checkbox_all_checkbox" /></td>
                <td width="200" align="center" bgcolor="#CCCCCC">用户名</td>
                <td width="340" align="center" bgcolor="#CCCCCC">邮箱</td>
                <td width="100" align="center" bgcolor="#CCCCCC">角色</td>
                <td width="100" align="center" bgcolor="#CCCCCC">文章</td>
              </tr>
			  <?php if($list_data){ foreach($list_data as $lines) {?>
              <tr>
                <td width="30" height="30" align="center"><input type="checkbox" name="list_name" value="<?php echo $lines['id']; ?>" class="list_id" /></td>
                <td align="left"><a href="<?php echo $this->get_action_url('profile'); ?>/?id=<?php echo $lines['id']; ?>" target="_self"><?php echo $lines['name']; ?></a></td>
                <td align="left"><?php echo $lines['email']; ?></td>
                <td width="100" align="center"><?php echo $lines['role']; ?></td>
                <td width="100" align="center"><?php echo $lines['num']; ?></td>
              </tr>
			  <?php } } else { ?>
              <tr>
                <td height="30" colspan="5" align="center">暂无文章</td>
              </tr>
			  <?php } ?>
            </table></td>
          </tr>
          <tr>
            <td height="30" align="left"><?php echo $pagelist_html; ?></td>
          </tr>
        </table></td>
      </tr>
</table>